
FIND_PATH(APRUtils_INCLUDE_DIR apu.h
  PATHS
  $ENV{APRUtils_DIR}
  NO_DEFAULT_PATH
  PATH_SUFFIXES include/apr1 include/apr-1 include/apr include
)

FIND_PATH(APRUtils_INCLUDE_DIR apu.h
  PATHS
  ~/Library/Frameworks
  /Library/Frameworks
  /usr/local
  /usr
  /sw # Fink
  /opt/local # DarwinPorts
  /opt/csw # Blastwave
  /opt
  PATH_SUFFIXES include/apr1 include/apr-1 include/apr include
)

FIND_LIBRARY(APRUtils_LIBRARIES 
  NAMES aprutil1 aprutil-1 aprutil
  PATHS
  $ENV{APRUtils_DIR}
  NO_DEFAULT_PATH
    PATH_SUFFIXES lib64 lib
)

FIND_LIBRARY(APRUtils_LIBRARIES
  NAMES aprutil1 aprutil-1 aprutil
  PATHS
  ~/Library/Frameworks
  /Library/Frameworks
  /usr/local
  /usr
  /sw
  /opt/local
  /opt/csw
  /opt
    PATH_SUFFIXES lib64 lib
)

INCLUDE(FindPackageHandleStandardArgs)
# handle the QUIETLY and REQUIRED arguments and set LUA_FOUND to TRUE if 
# all listed variables are TRUE
FIND_PACKAGE_HANDLE_STANDARD_ARGS(APRUtils  DEFAULT_MSG  APRUtils_LIBRARIES APRUtils_INCLUDE_DIR)

MARK_AS_ADVANCED(APRUtils_INCLUDE_DIR APRUtils_LIBRARIES)

